<script src="http://server.chat:8080/socket.io/socket.io.js"></script>
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script>
	var socket = io.connect('http://server.chat:8080');
	/*
	socket.on('worker', function(data){
        
    });
	*/
	$(function() {
		$('#submit').click(function() {
			var data = $('#notification').val();
			socket.emit('worker', data);
		});
	});
</script>

<input type="text" id="notification"/>
<input type="button" id="submit" value="push"/>